import http from '@/utils/http'

/**
 * 获取模板 
 * @returns 
 */
 export function getSymptom (){
    return http.get('./symptom.json') 
}

/**
 * 获取所有症状类别
 * @returns 
 */
 export function getAllUserSymptom (baseUrl,id){
    return http.get(`${baseUrl?baseUrl:""}/api/userSymptom/getAllUserSymptom/${id}`) 
}

/**
 * 批量添加症状类别
 * @returns 
 */
 export function bulkCreateSymptom (baseUrl,params){
    return http.post(`${baseUrl?baseUrl:""}/api/userSymptom/bulkCreateUserSymptom`,params) 
}

/**
 * 新增个人模板
 * @returns 
 */
export function addUserSymptom (baseUrl,params){
    return http.post(`${baseUrl?baseUrl:""}/api/userSymptom/addUserSymptom`,params) 
}

